package adapter.example;

/**
 * @author Chen Guang
 * @date 2019/4/16 0016 下午 15:27
 */
public class Center extends Player{

    private String name;

    public Center(String name) {
        super(name);
        this.name = name;
    }

    @Override
    public void attack() {
        System.out.println("中锋" + name + "进攻");
    }

    @Override
    public void defence() {
        System.out.println("中锋" + name + "防守");
    }
}
